package com.tmallgo.controller.admin;

import java.util.ArrayList;
import java.util.List;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/test")
public class HelloVelocityController {
	@RequestMapping("/hello")
public String hello(ModelMap mm){
		mm.put("id", 12);
		mm.put("id", 12);
		mm.put("name", "siyaomin");
		List<Long> list=new ArrayList<Long>();
		list.add(1L);
		list.add(1L);
		list.add(1L);
		mm.put("list", list);
	return "hello";
}
}
